package zhklappoint.entity;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.springframework.util.ObjectUtils;

import zhklappoint.enums.ENUM_NORMAL;
import zhklappoint.util.BaseEntity;

@Entity(name="zhkl_appoint_company")
public class Company extends BaseEntity{
	
	//单位名称
	@Column(length = 64)
	private String companyName;
	//大图 小程序首页  公司列表中展示的图片
	@Column(length = 128)
	private String imgUrl;
	//背景图  公司首页 轮播图后面的背景图
	@Column(length = 128)
	private String imgUrlBack;
	//单位logo
	@Column(length = 128)
	private String logoImage;
	//公司轮播图
	@Column(length = 255)
	private String switchImg;
	//公司介绍
	@Column(columnDefinition = "text")
	private String companyDetail;
	//公司简介
	@Column(columnDefinition = "text")
	private String companyIntr;
	//老板名字
	@Column(length = 64)
	private String bossName;
	//老板电话
	@Column(length = 64)
	private String bossPhome;
	//用户的id
	@Column(length = 64)
	private String wxUserId;
	//当前用户使用状态0 正常状态  1审核状态 2异常停运处理
	@Column(columnDefinition = "tinyint")
	private Integer status;
	//当前用户使用状态0申请中未支付  1已支付（附表中有相关申请记录，比如申请时段之类）
	@Column(columnDefinition = "tinyint")
	private Integer payStatus;
	//经度
	@Column(length = 16)
	private String longitude;
	//纬度
	@Column(length = 16)
	private String latitude;
	//公司地址
	@Column(length = 255)
	private String address;
		
		

	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getWxUserId() {
		return wxUserId;
	}
	public void setWxUserId(String wxUserId) {
		this.wxUserId = wxUserId;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getImgUrl() {
		return imgUrl;
	}
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	public String getImgUrlBack() {
		return imgUrlBack;
	}
	public void setImgUrlBack(String imgUrlBack) {
		this.imgUrlBack = imgUrlBack;
	}
	public String getLogoImage() {
		return logoImage;
	}
	public void setLogoImage(String logoImage) {
		this.logoImage = logoImage;
	}
	public String getSwitchImg() {
		return switchImg;
	}
	public void setSwitchImg(String switchImg) {
		this.switchImg = switchImg;
	}
	public String getCompanyDetail() {
		return companyDetail;
	}
	public void setCompanyDetail(String companyDetail) {
		this.companyDetail = companyDetail;
	}
	public String getCompanyIntr() {
		return companyIntr;
	}
	public void setCompanyIntr(String companyIntr) {
		this.companyIntr = companyIntr;
	}
	public String getBossName() {
		return bossName;
	}
	public void setBossName(String bossName) {
		this.bossName = bossName;
	}
	public String getBossPhome() {
		return bossPhome;
	}
	public void setBossPhome(String bossPhome) {
		this.bossPhome = bossPhome;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		if(ObjectUtils.isEmpty(status)) {
			this.status = ENUM_NORMAL.ABNORMAL.value;
		}else {
			this.status = status;
		}
		
	}
	public Integer getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(Integer payStatus) {
		if(ObjectUtils.isEmpty(payStatus)) {
			this.payStatus = 0;
		}else {
			this.payStatus = payStatus;
		}
	}

}
